package br.ufpb.sistcomp.entity;

/**
 * Professor entity class
 *
 * @author Fagner Silva Martins, fagner.silva@dce.ufpb.br
 * @version 1.0
 * @since 30/11/2011
 *
 * Copyright (C) 2012 SistComp Empresa Jr.
 */

public class Discipline{
	
	private int id;
	private int idTeacher;
	private int idSemester;
	private String name;	
	private double media;			
	private String hours; 
		
	public Discipline() {}
	
	public Discipline(String name, String hours) {
		this.name  = name;
		this.hours = hours;
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getIdteacher() {
		return idTeacher;
	}

	public void setIdteacher(int idteacher) {
		this.idTeacher = idteacher;
	}

	public int getIdSemester() {
		return idSemester;
	}

	public void setIdSemester(int idSemester) {
		this.idSemester = idSemester;
	}

	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public double getMedia() {
		return media;
	}
	
	public void setMedia(double media) {
		this.media = media;
	}
		
	public String getHours() {
		return hours;
	}
	
	public void setHours(String hours) {
		this.hours = hours;
	}

	/*
	 * toString() will be in Portuguese as the preferred language of the
	 * application
	 */
	
	@Override
	public String toString() {
		return "Disciplina: " + name + ", Media: " + media + ", Hours: "
				+ hours;
	}	
	
			
}
